package com.bawei.module_mine.state

import com.bawei.lib_common.mvi.IState
import com.bawei.module_mine.model.entity.UserEntity
import kotlin.random.Random

sealed class LoginState :IState{
    data class loginSuccess(val result:UserEntity):LoginState(){
        override fun equals(other: Any?): Boolean {
            return false
        }
        override fun hashCode(): Int {
            return Random.nextInt()
        }
    }
    data class loginFailed(val result:Boolean=false):LoginState(){
        override fun equals(other: Any?): Boolean {
            return false
        }
        override fun hashCode(): Int {
            return Random.nextInt()
        }
    }

    object loginInit:LoginState()
}